namespace Universal.Domain.Entities.App;

//菜单实体类
public class AppMenu : EntityBase
{
    public string Menuname { get; set; } = string.Empty;
    public string Path { get; set; } = string.Empty;
    public string? Icon { get; set; }

    //排序值
    public int Sort { get; set; } = 0;
    public Guid? ParentId { get; set; }
    public AppMenu? Parent { get; set; }
    //一个菜单拥有多个子菜单
    public ICollection<AppMenu> Children { get; set; } = new List<AppMenu>();

    //一个菜单拥有多个角色
    public ICollection<AppRole> Roles { get; set; } = new List<AppRole>();


}